package web.jdbc;

import web.clazz.Clazz;
import web.operator.EntityOperator;
/**通过Entity找到对应的Clazz对象
 * @version 1.0
 * @author 樂淵
 * @see Clazz
 * @see EntityOperator
*/
public class GETClazz {
	
	public static <T> Clazz getClazz(T t){
		Clazz clazz = null;
		for(Clazz c:EntityOperator.Entities)
			if(c.getClazz().equals(t.getClass())){
				clazz = c;
				break;
			}
		return clazz;
	}
}
